package com.cctc.mychat.common.protocol.message.impl.response;

import com.cctc.mychat.common.protocol.message.MessageType;
import com.cctc.mychat.common.protocol.message.impl.AbstractMessage;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginResponseMessage extends AbstractMessage {
    private boolean success;
    private String userName;
    private String reason;

    @Override
    public Byte getType() {
        return MessageType.LOGIN_RESPONSE_MESSAGE.getValue();
    }
}
